package com.aaa.a1108.demo01;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Factory {
    public BJB createBJB(int type) {
        switch (type){
            case 55:
                return new HuaWei();
            case 66:
                return new ShengZho();
                default :
                    break;
        }
        return null;
    }
}
